/**
 * Created by kevin on 16-1-18.
 */
Ext.define('cfWeb.store.util.ServiceAlertStore', {
    extend: 'Ext.data.Store',
    autoSync: true,
    autoLoad: true,
    alias: 'widget.alertStore',
    fields: [
        {name: 'HardName', type: 'string'},
        {name: 'IP', type: 'string'},
        {name: 'memory', type: 'memory'},
        {name: 'disk', type: 'string'}
    ],
//    data: [
//        {name: 'wqnmlgb1', ipAddress: '10.82.83.2', memory: '512M', disk: '80%', totMemory: '1G'},
//        {name: 'wqnmlgb2', ipAddress: '10.82.83.2', memory: '512M', disk: '80%', totMemory: '1G'},
//        {name: 'wqnmlgb3', ipAddress: '10.82.83.2', memory: '512M', disk: '80%', totMemory: '1G'},
//        {name: 'wqnmlgb4', ipAddress: '10.82.83.2', memory: '512M', disk: '80%', totMemory: '1G'},
//        {name: 'wqnmlgb5', ipAddress: '10.82.83.2', memory: '512M', disk: '80%', totMemory: '1G'},
//    ],


    proxy: {
        type: 'rest',
        url: 'rest/monit/monitAll',
        reader: {
            type: 'json',
            root: 'data',
            successProperty: 'success'
        }
    }
    

});